import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import {il8n} from './i18n/config';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import VMdEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';
import VueMarkdownEditor from '@kangc/v-md-editor';
import createEmojiPlugin from '@kangc/v-md-editor/lib/plugins/emoji/index';
import '@kangc/v-md-editor/lib/plugins/emoji/emoji.css';
import hljs from 'highlight.js';

import Vant from 'vant';
import 'vant/lib/index.css';
import { Switch } from 'vant';
const app = createApp();
app.use(Switch);
VMdEditor.use(githubTheme, {
  Hljs: hljs,
});

VueMarkdownEditor.use(createEmojiPlugin())
createApp(App).use(store).use(router).use(Antd).use(VMdEditor).use(il8n).use(Vant).mount('#app')
